
#ifndef CHATPROJECT_MOVEFRAMELESSDIALOG_H
#define CHATPROJECT_MOVEFRAMELESSDIALOG_H

#include <QDialog>

class MoveFramelessDialog : public QDialog
{
    Q_OBJECT
public:
    explicit MoveFramelessDialog(QWidget *parent = nullptr);
    ~MoveFramelessDialog() override;

protected:
    void mousePressEvent(QMouseEvent *event) override;
    void mouseMoveEvent(QMouseEvent *event) override;
    void mouseReleaseEvent(QMouseEvent *event) override;

private:
    QPoint                        last_position_;
    bool                          left_button_clicked_;
};



#endif //CHATPROJECT_MOVEFRAMELESSDIALOG_H
